﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ESRI
{
    public class SHX
    {
        public FileInfo SHXFile { get; set; }
        public FileHeader FileHeader { get; set; }
        public Shapes.IndexRecord[] Records { get; set; }

        public SHX() { }
        public SHX(string filePath)
        {
            SHXFile = new FileInfo(filePath);
        }

        private void LoadHeader()
        {
            FileStream fs = SHXFile.OpenRead();
            byte[] buffer = new byte[100];
            fs.Read(buffer, 0, 100);
            FileHeader = new FileHeader(buffer);
        }
    }
}
